package JAVA300.第十二章网络编程;

import java.io.Closeable;
import java.io.IOException;

/**
 * chat5中的工具类
 */

public class web_TCPChatUntils {

    /*
    释放资源--利用可变参数-targets数组
     */
    public static void close(Closeable... targets){
        for (Closeable target: targets){
            try {
                target.close();
            } catch (IOException e) {
                e.printStackTrace();
            }
        }


    }
}
